Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set language to DESCRIPTION language (or English) in local_reproducible_output() #1622

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

olivroy
Copy link
Contributor

@olivroy olivroy commented May 9, 2024

Addresses #1619.

Probably need to find a better way to respect language set in DESCRIPTION, any way to access this?

Similar to the approach in #1621

In Rstudio build pane sets to C

rstudio/rstudio#14802.

If we merge this PR, I could make edits in the IDE to let roxygen2 set locale (i.e RStudio build pane would no longer be in charge of this)

@IndrajeetPatil
Copy link
Contributor

Something like this?

setwd("/Users/indrajeetpatil/Documents/GitHub/lintr")
desc::desc_get("Language")
#> Language 
#>  "en-US"

setwd("/Users/indrajeetpatil/Documents/GitHub/styler")
desc::desc_get("Language")
#> Language 
#>       NA

Created on 2024-05-10 with reprex v2.1.0

@olivroy olivroy marked this pull request as ready for review July 9, 2024 14:55
@olivroy olivroy changed the title Set language to english in local_reproducible_output() Set language to DESCRIPTION language (or English) in local_reproducible_output() Jul 9, 2024
R/rd-eval.R Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants